import service from '@/utils/request'

export const userLogin = (data: { username: string; password: string }) => {
  return service({
    url: '/app/login',
    method: 'post',
    data
  })
}

export const userInfo = () => {
  return service({
    url: '/app/info',
    method: 'get'
  })
}

export const userMenus = () => {
  return service({
    url: '/app/menus',
    method: 'get'
  })
}
